package cn.iocoder.yudao.im.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 群成员
 * </p>
 *
 * @author ZCC
 * @since 2024-07-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_notice_im_group_member")
public class NoticeImGroupMember implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 群id
     */
    @TableField("group_id")
    private Long groupId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 组内显示名称
     */
    @TableField("alias_name")
    private String aliasName;

    /**
     * 用户头像
     */
    @TableField("head_image")
    private String headImage;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 是否已退出
     */
    @TableField("quit")
    private Boolean quit;

    /**
     * 退出时间
     */
    @TableField("quit_time")
    private LocalDateTime quitTime;

    /**
     * 创建时间
     */
    @TableField("created_time")
    private LocalDateTime createdTime;


    /**
     * 是否在线
     */
    @TableField(exist = false)
    private Boolean online;


}
